<header class="header">
    <div class="ui-width header-wrap">
        <div class="filter-search">
            <form action="/">
                <input type="text" id="f-input" class="f-input placeholder-con" placeholder="搜索商户或商品" value=""
                       name="name">
                <button id="f-search" class="f-search" type="submit"></button>
            </form>

        </div>
        <nav>
            <ul class="nav">
                <li class="nav-item nav-item-active" id="find">
                    <a href="/" class="nav-item-link">首页</a>
                </li>
            <#if sessionUser??>
                <li class="nav-item " id="order">
                    <a href="/order/myOrder" class="nav-item-link">我的订单</a>
                </li>
            </#if>

            </ul>
        </nav>
        <div id="user_info" class="user-info-widget" style="1px solid blue;">
        <#if sessionUser??>
            <div id="login_user_info" style="">
                <ul class="login_info">
                    <li id="usernameInfo" class="uname mn-lk-w">
                        <a id="username" class="mn-lk" href="">你好，${sessionUser.username!}</a>
                    </li>
                    <li id="loginOut" class="uname mn-lk-w">
                        <a id="out" class="mn-lk" href="/logout">登出</a>
                    </li>
                </ul>
            </div>
        <#else>
            <div id="logout_user_info">
                <ul class="logout_info">
                    <li>
                        <a id="login" href="/login">&nbsp;登录</a>
                    </li>
                    <div hidden>
                    <li>
                        <a id="logout_user_register" href="/register">注册</a>
                    </li>
                    </div>
                </ul>
            </div>
        </#if>
        </div>
    </div>
</header>